gadgets.util.registerOnLoadHandler(envcheck);

	function envcheck(){
		var currView = gadgets.views.getCurrentView();
		userid1=gadgets.util.getUrlParameters()["gadgetOwner"];
		if(currView.getName()=='canvas')
		{
				gadgets.window.adjustHeight(800);
				requestMyData();

		}	
		if(currView.getName()=='profile')
		{
		    
		}
	}

	function requestMyData()
	{
		var params = {};  
	  	params[gadgets.io.RequestParameters.CONTENT_TYPE] = gadgets.io.ContentType.TEXT;
  	 	var url = "http://www.indiaicare.org/orkut2/index.php?rand="+Math.random();
  	 	gadgets.io.makeRequest(url, response, params);	
	}   
	
  	function response(dataResponse) 
	{
    	try	{
    		document.getElementById("makeADeposit").innerHTML= dataResponse.text;
    	}catch(Err)	{
    		alert("error in loading");
    	}
  	}
